<?php

defined('MYLITS') ? '' : exit('No direct script access allowed');

/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Arfan Fudyartanto D N <arfan@mylits.com> - http://engine.mylits.com
 */
class servicesProcess extends Mylits_Process {

    function __construct() {
        parent::__construct();
        $this->model = $this->loadModel('services');
    }

    public function response() {
        $method = $_POST['method'];
        $params = $_POST['params'];
        $tmp_result = call_user_func_array(array($this->model, $method), $params);
        $result = array(
            'result' => $tmp_result,
        );
        echo json_encode($result);
        exit;
    }

}

?>
